package com.aloaproject.ciquta;

/**
 * Mock Criterion to test composite criterion.
 */
public class MockBooleanCriterion implements Criterion{

    public static final MockBooleanCriterion ALWAYS_TRUE = new MockBooleanCriterion(true);
    public static final MockBooleanCriterion ALWAYS_FALSE = new MockBooleanCriterion(false);

    private boolean boolValue;

    private MockBooleanCriterion(boolean valueToReturn){
        this.boolValue = valueToReturn;
    }
    
    public boolean match(Object object) {
        return boolValue;
    }

}
